package com.evil.application.pojo.dto.form.control.code;

import com.evil.application.pojo.entity.ApplicationFormControl;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 时间日期-表单控件实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DateControlDTO extends ControlDTO {

    public static final String[] ignoreProperties = new String[]{};

    /**
     * 日期格式(0:年-月-日, 1:年-月-日 时:分, 2: 年-月-日 时:分:秒)
     */
    private Integer dateType;
    /**
     * 允许时间重叠(0:否, 1:是)
     */
    private Integer dateOverlap;
    /**
     * 选项分隔符
     */
    private String selectSeparator;
    /**
     * 开始占位符
     */
    private String startPlaceholder;
    /**
     * 结束占位符
     */
    private String endPlaceholder;
    /**
     * 限制日期/时间选择范围
     */
    private String selectableRange;

    public DateControlDTO(ApplicationFormControl applicationFormControl) {
        super(applicationFormControl, ignoreProperties);
    }
}
